import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('tb_outlet', {
  comment: '网点表',
})
export class Outlet {
  @PrimaryGeneratedColumn('increment', { comment: '自增主键', unsigned: true })
  id: number;

  @Column({ comment: '网点名称' })
  name: string;

  @Column({ comment: '门头照片' })
  image: string;

  @Column({ comment: '联系电话' })
  phone: string;

  @Column({ comment: '地址坐标' })
  coordinates: string;

  @Column({ comment: '详细地址' })
  address: string;

  @Column({ comment: '营业时间' })
  time: string;
}
